package com.ns.basic.dict.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ns.core.vo.bs.BasicVO;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * 字典返回实体
 *
 * @author liaowei
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@Accessors(chain = true)
public class DictEntryVO extends BasicVO {

    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 字典名
     */
    private String name;
    /**
     * 字典code
     */
    private String code;

    /**
     * 字典项
     */
    private List<DictItemEntryVO> items;
}
